<% content_for :body_content_left do %>
  <div class="inquiries">
    <%=raw @page.content_for(Page.default_parts.first.to_sym) %>

    <%= form_for @product_inquiry do |f| %>
      <%= render :partial => '/shared/admin/error_messages',
                 :locals => {
                     :object => @product_inquiry,
                     :include_object_name => true
                 } %>

      <%= f.hidden_field :product_id %>
      <div class="field">
        <label>Product</label>
        <%= text_field_tag(:product_name, @product_inquiry.product.name, :disabled => 'disabled') if @product_inquiry.product.present? %>
      </div>
      <div class="field">
        <%= f.required_label :name, :class => 'placeholder-fallback' %>
        <%= f.text_field :name, :class => 'text', :required => 'required', :placeholder => t('name', :scope => 'activerecord.attributes.inquiry') %>
      </div>
      <div class="field">
        <%= f.required_label :email, :class => 'placeholder-fallback' %>
        <%= f.email_field :email, :class => 'text email', :required => 'required', :placeholder => t('email', :scope => 'activerecord.attributes.inquiry') %>
      </div>
      <div class="field">
        <%= f.label :phone, :class => 'placeholder-fallback' %>
        <%= f.text_field :phone, :class => 'text phone', :placeholder => t('phone', :scope => 'activerecord.attributes.inquiry') %>
      </div>
      <div class='field message_field'>
        <%= f.required_label :message, :class => 'placeholder-fallback' %>
        <%= f.text_area :message, :rows => 8, :required => 'required', :placeholder => t('message', :scope => 'activerecord.attributes.inquiry') %>
      </div>
      <div class="actions">
        <%= f.submit t('.send') %>
      </div>
    <% end %>
  </div>
<% end %>
<%= render :partial => '/shared/content_page' %>